package com.mcc.app.group.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mcc.app.group.domain.GroupSche;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 排班计划Mapper接口
 *
 * @author gxy
 * @date 2021-07-08
 */
public interface GroupScheMapper extends BaseMapper<GroupSche> {

    int checkGroupScheBatch(@Param("classesId") Long classesId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
    /**
     * 通过时间查找烧结班班组ID
     * @param sinterDate
     * @return
     */
    GroupSche selectSinterClassTeamId(@Param("sinterDate") Date sinterDate);


    GroupSche getGroupScheByClasses(@Param("scheDate") Date scheDate, @Param("classesId") Long classesId);

}
